﻿<form action="users.php" method="post" id = "search">
    <?php
    if(!get_magic_quotes_gpc())
    {
        $searchterm_query = addslashes($searchterm_query);
    }

    if (mysqli_connect_error())
    {
        echo 'Error: could not connect to database. Please try again later.';
        exit;
    }
    ?>
    <label>Enter your SQL query</label><br/>
    <textarea id="searchterm_query" class="search_input" type="text" name="searchterm_query"></textarea>
    <br/>
    <div id="btns">
        <input type="submit" value="Search" id="search_btn">
    </div>
</form>